package com.ai.platform.system.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 操作日志
 * </p>
 *
 * @author yeyingsheng
 * @since 2018-05-26
 */
@TableName("sys_operation_log")
public class SysOperationLog extends Model<SysOperationLog> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 日志类型
     */
    @TableField("log_type")
    private String logType;
    /**
     * 操作类
     */
    @TableField("log_class")
    private String logClass;
    /**
     * 描述
     */
    @TableField("log_method")
    private String logMethod;
    /**
     * 操作内容
     */
    @TableField("opt_params")
    private String optParams;
    /**
     * 操作结果
     */
    @TableField("opt_result")
    private String optResult;
    /**
     * 描述
     */
    private String desc;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLogType() {
        return logType;
    }

    public void setLogType(String logType) {
        this.logType = logType;
    }

    public String getLogClass() {
        return logClass;
    }

    public void setLogClass(String logClass) {
        this.logClass = logClass;
    }

    public String getLogMethod() {
        return logMethod;
    }

    public void setLogMethod(String logMethod) {
        this.logMethod = logMethod;
    }

    public String getOptParams() {
        return optParams;
    }

    public void setOptParams(String optParams) {
        this.optParams = optParams;
    }

    public String getOptResult() {
        return optResult;
    }

    public void setOptResult(String optResult) {
        this.optResult = optResult;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysOperationLog{" +
        ", id=" + id +
        ", logType=" + logType +
        ", logClass=" + logClass +
        ", logMethod=" + logMethod +
        ", optParams=" + optParams +
        ", optResult=" + optResult +
        ", desc=" + desc +
        ", createTime=" + createTime +
        ", userId=" + userId +
        "}";
    }
}
